package com.wf.classRoomTest;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author mpk
 * @since 2024/6/14 10:59:05
 */
public class AAA {
    public static void main(String[] args) throws InterruptedException {


        RunnableAA runnableAA = new RunnableAA();

        Thread thread = new Thread(runnableAA);
        thread.start();


        AtomicInteger atomicInteger = new AtomicInteger(0);

        while (true)
        {
            if(runnableAA.isFlag())
            {
                System.out.println(runnableAA.isFlag());
            }
        }



    }


}
